import request from '@/utils/request'

// 查询食品宣传列表
export function listOpmFoodSafePublic(query) {
  return request({
    url: '/food/opmFoodSafePublic/list',
    method: 'get',
    params: query
  })
}

// 查询食品宣传详细
export function getOpmFoodSafePublic(id) {
  return request({
    url: '/food/opmFoodSafePublic/' + id,
    method: 'get'
  })
}

// 新增食品宣传
export function addOpmFoodSafePublic(data) {
  return request({
    url: '/food/opmFoodSafePublic',
    method: 'post',
    data: data
  })
}

// 修改食品宣传
export function updateOpmFoodSafePublic(data) {
  return request({
    url: '/food/opmFoodSafePublic',
    method: 'put',
    data: data
  })
}

// 删除食品宣传
export function delOpmFoodSafePublic(id) {
  return request({
    url: '/food/opmFoodSafePublic/' + id,
    method: 'delete'
  })
}
